package com.atguigu.customerdemo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ClassName: Customer
 * Package: com.atguigu.customerdemo.bean
 * Description:
 *
 * @Author ChenJun
 * @Create 2023/4/3 12:43
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer {

    @TableId(value ="id",type= IdType.AUTO)//标识根据数据库自增生成主键
    String id;

    String name;

    int age;
}
